.login {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100vh;

  .icon {
    width: 32px;
    height: 32px;
  }

  .el-input__inner {
    &:focus {
      border: 1px solid #4e83fd;
    }
  }

  .el-input--medium .el-input__inner {
    height: 40px;
    line-height: 40px;
  }

  .left-wrap {
    position: relative;
    box-sizing: border-box;
    width: 520px;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    background: #f3f4fb;
    background-size: cover;

    .logo {
      position: relative;
      z-index: 100;
      display: flex;
      align-items: center;

      .title {
        margin: 3px 0 0 10px;
        font-size: 20px;
        font-weight: 400;
        color: var(--art-text-gray-900);
      }
    }

    .left-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .left-img {
      position: relative;
      z-index: 10;
      display: block;
      margin: auto;
      margin-top: 300px;
    }
  }

  .right-wrap {
    position: relative;
    width: calc(100% - 520px);
    height: 100%;

    .header {
      display: none;
    }

    .login-wrap {
      position: absolute;
      inset: 0;
      width: 440px;
      height: 550px;
      margin: auto;
      overflow: hidden;
      background-size: cover;
      border-radius: 5px;
      box-shadow: 0 0 10px rgb(28 76 186 / 10%);

      .form {
        box-sizing: border-box;
        height: 100%;
        padding: 40px 30px;
        background: #fff;
        widows: 100%;

        h3 {
          font-size: 23px;
          font-weight: 500;
          color: var(--art-text-gray-800);
          text-align: center;
        }

        .input-label {
          display: block;
          padding: 8px 0;
          font-size: 14px;
        }

        .code {
          display: flex;
          justify-content: space-between;

          .el-input {
            flex: 1;
            margin-right: 20px;
          }

          img {
            width: 115px;
            height: 40px;
            cursor: pointer;
            background: #f8f8f8 !important;
            border-radius: 5px;
          }
        }

        .login-btn {
          width: 100%;
          color: #fff;
          border: 0;
        }
      }
    }
  }
}

@media only screen and (max-width: $device-ipad-pro) {
  .login {
    width: 100%;
    height: 100vh;

    .left-wrap {
      display: none;
    }

    .right-wrap {
      width: 100%;

      .header {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20vh;
        // padding-left: 30px;

        .icon {
          width: 40px;
          height: 40px;
        }

        h1 {
          margin-left: 15px;
        }
      }

      .login-wrap {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;

        .form {
          padding: 0 30px;

          h3 {
            display: none;
          }
        }
      }
    }
  }
}

@keyframes slideDown {
  0% {
    opacity: 0.3;
    transform: translateY(80px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
